<div id="container">
<div class="eventos form">
    
	<h1>Agenda de Eventos</h1>
        
        <table>
   
    <tr><td higth="40%">Pesquisar Evento</td></tr>
    <tr><td  higth="40%">
            
                
       
         <?php 
            
echo $this->Search->create();

echo $this->Search->selectFields('filter1',
        array(
            'Evento.nomeEvento'       => __('Nome', true),
            'Evento.localEvento'     => __('Local', true),
            'Evento.dataEvento' => __('Data', true),
            'Evento.precoEvento' => __('Preco', true),
            
            
        ),
        array(
            'class' => 'select-box'
        )
    );

echo $this->Search->selectOperators('filter1',
        array(
            'LIKE' => __('contendo', true),
            '='    => __('igual', true)
        )
    );

echo $this->Search->input('filter1');
echo $this->Search->end(__('Pesquisar', true));
              
       ?>  
            
            
        </td></tr>
    </table>

        
        
        
        
        
       
   
          
       
         
	<table cellpadding="0" cellspacing="0">
	<tr>
		<th><?php echo $this->Paginator->sort(' Confira Abaixo os melhores eventos de João Monlevade '); ?></th>
		<th><?php echo $this->Paginator->sort(' '); ?></th>
	</tr>
	<?php
        
                foreach($eventos as $evento): ?>
     
	<tr>
		
		<td><?php  echo $this->Paginator->sort(' Nome do Evento : '); echo h($evento['Evento']['nomeEvento']); echo " <br>";
		echo $this->Paginator->sort(' Data : '); echo h($evento['Evento']['dataEvento']); echo " <br>";
		echo $this->Paginator->sort(' Horário : ');  echo h($evento['Evento']['horarioEvento']);echo " <br>";
		echo $this->Paginator->sort(' Local :'); echo h($evento['Evento']['localEvento']); echo " <br>";
		echo $this->Paginator->sort(' Telefone :');echo h($evento['Evento']['telefoneEvento']);echo " <br>";
		echo $this->Paginator->sort(' Endereco :'); echo h($evento['Evento']['enderecoEvento']);echo " <br>";
		echo $this->Paginator->sort(' Preço do ingresso : '); echo h($evento['Evento']['precoEvento']); echo $this->Paginator->sort('$');echo " <br>";
		echo $this->Paginator->sort(' Atrações : '); echo h($evento['Evento']['bandasEvento']); ?>&nbsp;</td>
                <td><center><?php echo $this->Html->image('uploads/evento/filename/'.$evento['Evento']['filename'],array('alt'=>$evento['Evento']['nomeEvento'],'width'=>'180','height'=>'180')); ?>&nbsp;</center></td>
		
	</tr>
<?php endforeach; ?>
	</table>
              
        
              
           
	
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Pagina {:page} de {:pages}, Mostrando {:current} registros  no total de{:count}')));
	?>
        </p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>

</div>              
	
               

